package com.yaolong.api.modules.opms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yaolong.commons.base2.BaseDomain;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息通知表
 * </p>
 *
 * @author yaolonga
 * @version v1.0.0
 * @since 2023-02-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("opms_message")
@ApiModel(value = "Message对象", description = "消息通知")
public class Message extends BaseDomain {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "消息id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "发送人id")
    @TableField("sender_by")
    private Long senderBy;

    @ApiModelProperty(value = "发送人姓名")
    @TableField("sender_by_name")
    private String senderByName;

    @ApiModelProperty(value = "接受人id")
    @TableField("receiver_by")
    private Long receiverBy;

    @ApiModelProperty(value = "接收人姓名")
    @TableField("receiver_by_name")
    private String receiverByName;

    @ApiModelProperty(value = "是否处理")
    @TableField("is_handle")
    private Boolean isHandle;
    @ApiModelProperty(value = "内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "topicId")
    @TableField("topic_id")
    private Long topicId;

}
